package example.chapter3;

import java.util.ArrayList;
import java.util.List;

public class AppendListAction {

	private List<String> listPainter;
	private List<String> listMusician;
	
	public String execute() throws Exception{
		listPainter = new ArrayList<String>();
		listPainter.add("Claude Monet");
		listPainter.add("Vincent van Gogh");
		listPainter.add("Paul Gauguin");
		listPainter.add("Rembrandt Harmenszoon van Rijn");
		
		listMusician = new ArrayList<String>();
		listMusician.add("Johann Sebastian Bach");
		listMusician.add("Franz Peter Schubert");
		listMusician.add("Wolfgang Amadeus Mozart");
		listMusician.add("Frederic Chopin");
		
		return "success";
	}

	public List<String> getListPainter() {
		return listPainter;
	}

	public void setListPainter(List<String> listPainter) {
		this.listPainter = listPainter;
	}

	public List<String> getListMusician() {
		return listMusician;
	}

	public void setListMusician(List<String> listMusician) {
		this.listMusician = listMusician;
	}
	
}
